package platform;

public enum Platform {
	WINDOWS, MAC, LINUX, OTHER;

	public static Platform getPlatform() {
		String os = System.getProperty("os.name");
		if (os.contains("Windows")) {
			return Platform.WINDOWS;
		} else if (os.contains("Linux")) {
			return Platform.LINUX;
		} else if (os.contains("Mac")) {
			return Platform.MAC;
		} else {
			return Platform.OTHER;
		}
	}
}
